<%@page import="java.net.URLDecoder"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<!DOCTYPE html>

<html>
<head>
	<meta charset="UTF-8">
	<title>用户信息</title>
	<style>
		*{
			margin:0;
			padding:0;
		}
		.box{
			width:100%;
			height:46px;
			background-color:lightskyblue;
			box-shadow: 1px 1px 1px #E0E0E0;
			margin-bottom: 2px;
		}
		.box_center{
			width:1200px;
			height: 100%;
			margin: 0 auto;

		}
		a{
			text-decoration:none;
		}

		.box_center_b{
			width:100%;
			height: 45px;

		}
		.box_center_b ul{
			margin-left: 200px;
			text-align: center;

		}
		.box_center_b li{
			list-style:none;
			float:left;
			margin-left:80px;
			color:#666;
			font-family: "微软雅黑";
			font-size: 16px;
			margin-top: 19px;

		}

		.box_center_b a {
			width: 100px;
			height: 28px;
			color: #666;
			text-align: center;
		}
		.box_center_b a:hover {
			cursor:pointer;
			color:#136fb8;
			text-align: center;
			text-decoration: none;
			border-bottom: 1px solid #136fb8;
		}

		.a2{
			float:left;
			line-height: 5px;
		}
		.boo{
			width: 100%;
			height:650px;
			background-image: url(img/5.jpg);
			background-position-x:50% ;
			background-position-y:40%;
			background-repeat:no-repeat;
			border: 1px solid rgba(55,55,55,0.1);

		}


		.zhuce{
			width: 500px;
			height: 400px;
			border: 1px solid #D43F3A;
			border-radius:15px;

			margin: 0 auto;
			margin-top:100px;
		}
		p{
			text-align: center;
			font-size: 24px;
		}
		input{
			margin-top: 20px;
			height: 35px;

		}
		form{
			font-size: 18px;
		}

	</style>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-3.2.1.js"></script>
	<script type="text/javascript">
		//jquery的入口函数。  2.文档加载完毕，图片不加载的时候就可以执行这个函数。
		$(function () {
			$("#save").click(function () {
				$("#userForm").submit()
			})
		});
	</script>
</head>
<body>

<div class="boo">

	<div class="zhuce" style="text-align: center">
		<p>----------------用户信息-----------------</p>
		<h4 style="color: red; font-size: 12px;margin-top: 50px">${message}</h4>
		<form action="/editUser" method="post" style="text-align: center" id="userForm">
			<input type="text" name="userId" value="${user.userId}" style="display: none">
			用户名：<input type="text" disabled value="${user.userName}"><br />
			性&nbsp;&nbsp;&nbsp;&nbsp;别：<input type="text" name="gender" value="${user.gender}"><br />
			年&nbsp;&nbsp;&nbsp;&nbsp;龄：<input type="text" name="age" value="${user.age}"><br />
			收货地址：<input type="text" name="address" value="${user.address}"><br>
			密&nbsp;&nbsp;&nbsp;&nbsp;码：<input type="text" name="passWord" value="${user.passWord}"><br />

		</form>
		<a href="javascript:;"><input style="width: 150px;" type="button" value="保存" id="save"/></a>
		<a href="/index"><input style="width: 150px;" type="button" value="返回" id="back" /></a>
		<%-- <a href="zhuce.jsp"><input style="width: 150px; margin-left:140px;" type="submit" value="注册" /></a>--%>

	</div>
</div>
</body>
</html>